package stu.aistar.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;
import stu.aistar.model.pojo.Movie;

import java.util.List;


@Component
public interface IMovieDao extends JpaRepository<Movie,Integer> {

    Movie findMovieById(Integer Id);

    List<Movie> findMovieByMovietypeId(Integer Id);

    List<Movie> findByNameLike(String name);

}
